/*
* @Author: steven.wang
* @Date:   2019-02-27 10:53:47
* @Last Modified by:   steven.wang
* @Last Modified time: 2019-03-23 13:17:56
*/
var path = require('path');

const config = {
	debug: true,
	name: 'Crawler',

	mysql: {
		host: 'localhost',
		port: 3306,
		user: 'root',
		password: 'password',
		database: 'crawler'
	},

    concurrent: 50, //队列并发数
    // 拉钩网
    lagou: {
        name: '拉勾网',
        list: [{
            lang: '前端',
            children: [{
                name: '移动HTML5',
                url: 'https://www.lagou.com/jobs/list_HTML5?px=default&city=%E4%B8%8A%E6%B5%B7&pn=4',
                api: 'https://www.lagou.com/jobs/positionAjax.json?px=default&city=%E4%B8%8A%E6%B5%B7&needAddtionalResult=false',
                startPage: 1,
                endPage: 8
            }, {
                name: '前端WEB',
                url: 'https://www.lagou.com/zhaopin/webqianduan/?labelWords=labelcity=%E4%B8%8A%E6%B5%B7',
            }, {
                name: '前端html5',
                url: 'https://www.lagou.com/zhaopin/html51/?labelWords=labelcity=%E4%B8%8A%E6%B5%B7'
            }, {
                name: '前端javascript',
                url: 'https://www.lagou.com/zhaopin/JavaScript/?labelWords=labelcity=%E4%B8%8A%E6%B5%B7'
            }, {
                name: '前端其他',
                url: 'https://www.lagou.com/zhaopin/qianduankaifaqita/?labelWords=labelcity=%E4%B8%8A%E6%B5%B7'
            }]
        }]
    },
    // boss直聘
    boss: {
        name: 'BOSS直聘',
        host: 'https://www.zhipin.com',
        jobUrlPath: 'files/boss-job-url.json',
        jobDetailPath: 'files/boss-job-detail.json',
        list: [{
            lang: '前端',
            children: [{
                name: '移动HTML5',
                url: 'https://www.zhipin.com/c101020100-p100201/',
                startPage: 1,
                endPage: 10
            }, {
                name: '移动WEB前端',
                url: 'https://www.zhipin.com/c101020100-p100205/',
                startPage: 1,
                endPage: 10
            }, {
                name: '移动javascript',
                url: 'https://www.zhipin.com/c101020100-p100208/',
                startPage: 1,
                endPage: 10
            }, {
                name: '前端开发',
                url: 'https://www.zhipin.com/c101020100-p100999/',
                startPage: 1,
                endPage: 10
            }, {
                name: '前端WEB',
                url: 'https://www.zhipin.com/c101020100-p100901/',
                startPage: 1,
                endPage: 10
            }, {
                name: '前端javascript',
                url: 'https://www.zhipin.com/c101020100-p100902/',
                startPage: 1,
                endPage: 10
            }, {
                name: '前端HTML5',
                url: 'https://www.zhipin.com/c101020100-p100904/',
                startPage: 1,
                endPage: 10
            }]
        }]
    },
    // 猎聘网
    liepin: {
        name: '猎聘网',
        host: 'https://www.liepin.com',
        jobUrlPath: 'files/liepin-job-url.json',
        jobDetailPath: 'files/liepin-job-detail.json',
        list: [{
            lang: '前端',
            children: [{
            //     name: 'HTML5',
            //     url: 'https://www.liepin.com/zhaopin/?init=-1&headckid=353166cf83a1121e&dqs=020&fromSearchBtn=2&imscid=R000000035&ckid=353166cf83a1121e&degradeFlag=0&key=HTML5&siTag=a_9isQ2IT7d0KM_haM14PQ~r3i1HcfrfE3VRWBaGW6LoA&d_sfrom=search_unknown&d_ckId=fca54e9f6a51759ec471093e016d8689&d_headId=fca54e9f6a51759ec471093e016d8689',
            //     startPage: 1,
            //     endPage: 100
            // }, {
            //     name: 'Web前端',
            //     url: 'https://www.liepin.com/zhaopin/?init=-1&headckid=ec1339e8a854d0e4&dqs=020&fromSearchBtn=2&imscid=R000000035&ckid=ec1339e8a854d0e4&degradeFlag=0&key=Web%E5%89%8D%E7%AB%AF&siTag=QjHkX5K9AxltEvRBeNdg7A~r3i1HcfrfE3VRWBaGW6LoA&d_sfrom=search_unknown&d_ckId=e84d4c37b3d4c3db3cfcc2ec84e2f3ab&d_headId=e84d4c37b3d4c3db3cfcc2ec84e2f3ab',
            //     startPage: 1,
            //     endPage: 100
            // }, {
                name: 'Javascript',
                url: 'https://www.liepin.com/zhaopin/?init=-1&headckid=ab8508706ed93649&dqs=020&fromSearchBtn=2&imscid=R000000035&ckid=ab8508706ed93649&degradeFlag=0&key=Javascript&siTag=nhO2nR0tqScQKsqq9xVKNw~r3i1HcfrfE3VRWBaGW6LoA&d_sfrom=search_unknown&d_ckId=b032cdc909b53e9cfdc16c40e86da3ff&d_headId=b032cdc909b53e9cfdc16c40e86da3ff',
                startPage: 1,
                endPage: 100
            }]
        }]
    },
};

module.exports = config;